#pragma once
#include "GraphicLibrary.h"
#include "CImg/CImg.h"
using namespace cimg_library;

class CImgLibrary : public IGraphicLibrary
{
private:
	CImg<int> canvas;
public:

	IGraphicLibrary* Clone();
	void DrawLine(int x1, int y1, int x2, int y2, COLORREF color, int strokewidth);
	void DrawRectangle(int x, int y, int width, int height, COLORREF color, int strokewidth, COLORREF fill);
	void DrawEllipse(int cx, int cy, int rx, int ry, COLORREF color, int strokewidth, COLORREF fill);
	CImgLibrary(int width,int height);
	~CImgLibrary(void);
};

